/*******************************************************************************
 * Copyright (c) 2008 Sylvain Sicard.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License v2.1
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * 
 * Contributors:
 *     Sylvain Sicard - initial API and implementation
 ******************************************************************************/
package fr.jade.service.fm.deployment;

import org.objectweb.fractal.api.Component;

import fr.jade.base.JadeBaseObject;
import fr.jade.util.FractalNavigator;

public class FakeComponentTask extends JadeBaseObject implements DeploymentTask, NewComponentTask {
  
  protected boolean log = false;
  protected Component cmp;
  
  public FakeComponentTask(Component cmp){
    assert cmp != null;
    this.cmp=cmp;
  }

  public void execute() throws DeploymentException{ }

  public String getLevelName(){
    return "newComponent";
  }
  
  public Component getComponent()throws DeploymentException{
    return cmp;
  }
  
  public String toString(){
    return "FakeComponentTask[" + FractalNavigator.getName(cmp) + "]";
  }
}
